package cn.wolfcode.wechat.mapper;

import cn.wolfcode.wechat.domain.Coupon;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CouponMapper {
    int insertRelation(@Param("clientId") Long cilentId, @Param("couponId") Long couponId);
    void DeleteRelation(@Param("cilentId") Long cilentId, @Param("couponId") Long couponId);
    List<Coupon> selectByCilentId(Long cilentId);

    Long selectCilentIdByOpenId(String openId);

    Long selectCouponIdByPrizeNum(Long couponId);

    int selectRelation(@Param("clientId") Long cilentId, @Param("couponId") Long couponId);
}